package day2.HomeWork;

public class Test1 {
    //1.定义一个方法，求三个int数的平均值
    public static double avg(int a,int b,int c){
        int avg = (a+b+c)/3;
        return avg;

    }
    public static void main(String[] args) {

        //调用方法
        double result = avg(3, 4, 5);
        System.out.println("这三个数的平均数为："+result);

    }
}
